
import request from '@/utils/request'

//  * 获取规则列表
export function getRuleListAPI(params) {
  return request({
    url: 'parking/rule/list',
    params
  })
}

//  * 创建规则
export function createRuleAPI(data) {
    return request({
      url: '/parking/rule',
      method: 'POST',
      data
    })
}
  
//删除

export function delRuleAPI(id) {
    return request({
      url: `/parking/rule/${id}`,
      method: 'DELETE'
    })
}
export function editRuleAPI(id) {
  return request({
    url: `/parking/rule/${id}`,
    method: 'GET'
  })
}
